<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<style type="text/css">
body {
	
}
</style>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -->
<title>Insert title here</title>
</head>

<body background="images/soft_bright_blue_background.jpg">
	<tr>
		<td colspan="2" align="center" style="font-weight: bold"><font
			color="#17365D" size=5> Espace Accueil </font></td>
	</tr>


	<table align="center" height="100" width="100%" cellpadding="5"
		margin="2" style="border-bottom-style: solid;"border-bottom-color: "#FF0000" >
		<tr>
			<td><div align='left'>
					<img src='images/service_voyage.jpg' width='220px' height='140px'>
				</div></td>
			<td style="font-weight: bold"><font color="#17365D" size=5>
					&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
					&nbsp &nbsp &nbsp Espace Accueil</font><br /> &nbsp &nbsp &nbsp
				&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp &nbsp &nbsp
				&nbsp &nbsp&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
				&nbsp &nbsp &nbsp&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp
				&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp &nbsp &nbsp &nbsp
				&nbsp&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp 
				<a href="${pageContext.request.contextPath}/deconnexion">Deconnexion</a><br/>
			
				
			</td>
		</tr>
	</table>
	<br />
<%-- 	${userSession} --%>
<%-- ${pageContext.request.contextPath} --%>
	<c:choose>
		<c:when
			test="${userSession.getClass().name eq 'ma.techit.pfe.agence.voyage.model.Administrateur' }">
			<table border="0" align="center">
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/gererInscriptionFournisseur"'>  <input id="serviceVol"  type="Button" value="Les demandes d'inscription fournisseurs"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/gererInscriptionConsommateur"'>  <input id="serviceVoiture"  type="Button" value="Les demandes d'inscription consommateurs"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/gererFournisseur"'>  <input id="serviceHotel"  type="Button" value="Gestion Fournisseurs"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<br />
				<tr>
					<td><a onclick='location.href="${pageContext.request.contextPath}/gererConsommateur"'> <input  id="gestionFournisseur" type="Button" value="Gestion Consommateurs"
						style="width: 220px" style="height:35px" /> </a></td>
				</tr>
			</table>
		</c:when>
		<c:when
			test="${userSession.getClass().name eq 'ma.techit.pfe.agence.voyage.model.ContactFournisseur' }">
			<table border="0" align="center">
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/modifierCompteFournisseur"'>  <input id ="modifierFournisseur" type="Button" value="Modification de son compte"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<br />
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/gererServiceVol"'>  <input id="serviceVol"  type="Button" value="Gestion de services vol"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/gererServiceVoiture"'>  <input id="serviceVoiture"  type="Button" value="Gestion de services voiture"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<tr>
					<td> <a onclick='location.href="${pageContext.request.contextPath}/gererServiceHotel"'>  <input id="serviceHotel"  type="Button" value="Gestion de services Hotel"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
			</table>
		</c:when>
		<c:when
			test="${userSession.getClass().name eq 'ma.techit.pfe.agence.voyage.model.Consommateur' }">
			<table border="0" align="center">
				
				<br />
				
				<tr>
					<td><a onclick='location.href="${pageContext.request.contextPath}/modifierCompteConsommateur"'> <input id="modifierCompteConsommateur" type="Button" value="Modification de son compte"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
				<tr>
					<td><a onclick='location.href="${pageContext.request.contextPath}/faireRequete"'> <input id="requete" type="Button" value="Faire Requête"
						style="width: 220px" style="height:35px" /></a></td>
				</tr>
			</table>
		</c:when>
	</c:choose>
<%-- 	le nom de la classe est : ${userSession.getClass().name} --%>

</body>
</html>
